AnyError
AnyError
is a serializable casing for Error
.
AnyError
can be employed to transform other Error
types into a serializable Error for transmission, preserving most of the essential information.
let err = Error ;
let e = new
.add_context
.add_context;
println!;
The above code will print error description with context:
core::fmt::Error: an error occurred when formatting an argument
while: running test
while: developing new feature